package com.fan.staticTest;

public class Test {

    static {
        System.out.println("静态代码块被执行");
    }
    static  int a=f();
    static  int  f(){
        System.out.println("静态属性被执行");
        return  0;
    }

    public Test() {
        System.out.println("构造方法被执行");
    }

    int  b=say();
    {
        System.out.println("初始化代码块被执行...");
    }

    public   int  say(){
        System.out.println("非静态属性被执行...");
        return   0;
    }

    public static void main(String[] args) {
        Test test = new Test();
    }
}
